package com.it.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.it.entity.Hobby;
import com.it.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HobbyMapper extends BaseMapper<Hobby> {
    List<Hobby> selectHobbies(@Param(value = "id") String id);

    int insertHobbyToAllHobbies(@Param(value = "id") Integer id, @Param(value = "userId") String userId);

    List<Hobby> getPopularHobby();

    List<User> getCountHobbyForUser();

    List<User> getTheMonthMaxIntegralUser();

    List<User> getActiveUser();

}
